<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>        
        <title></title>
        <meta http-equiv="content-type" content="text/htm;charset=utf-8"/>
        {css file="__PUBLIC__/css/acommon.css" /}
        {jquery/}
        {jsconst/}
        {js file="__PUBLIC__/js/comment.js"/}
        <script>
            $(function(){
                $('tr').mouseover(function(){
                    $(this).css('background-color','#f6f6f6');
                }).mouseout(function(){
                    $(this).css('background-color','#fff');
                });
            });
        </script>
</head>
<body>
<div id="hd_jqueryui_div"></div>
<ul class="top_title">
    <li>
        <p class="menu_title">评论管理</p>
    </li>
    <li>|</li>
    <li>
        <a class="menu_title_a" >
            &nbsp;评论列表
        </a>
    </li>
</ul>
    <table class="table">
        <thead>
            <tr class="top_channel">
                <th align="center" width="30">&nbsp;</th>
                <th align="center" width="100">评论ID</th>
                <!-- <th align="center" width="100">排序</th> -->
                <th align="center" width="250">所属文章</th>
                <th align="center" width="100">评论用户</th>
                <th align="center" width="200">评论时间</th>
                <th align="center" width="150">审核状态</th>
                <!-- <th align="center" width="100">是否显视</th> -->
                <!-- <th align="center" width="100">是否飘红</th> -->
                <th align="center">操作</th>
            </tr>
        </thead>
        <tbody>
        {if value="$data"}
        {foreach from="$data" value="$v"}
            <tr class="top_channel">
                <td align="center" width="30">
                    <input type="checkbox" class="arcbox" cmid="{$v.cmid}"/>
                </td>
                <td align="center">
                    <input type="text" disabled="disabled" value="{$v.cmid}" class="input-mini"/>
                </td>
                <!-- <td align="center">
                    <input type="text" class="input-mini" value="{$v.sort}" name="sort[{$v.id}]"/>
                </td> -->
                <td align="center">
                    <strong style="font-weight: lighter;cursor: pointer;color: #3A66B0;">
                        &nbsp;{$v.title}
                    </strong>
                </td>
                <td align="center">
                    <strong style="font-weight: lighter;cursor: pointer;color: #3A66B0;">
                        &nbsp;{$v.username}
                    </strong>
                </td>
                <td align="center">
                    <strong style="font-weight: lighter;cursor: pointer;color: #3A66B0;">
                        &nbsp;{$v.addtime|date:'Y-m-d h:i:s',@@}
                    </strong>
                </td>
                <td align="center">
                    {if value="$v.shenhe"}
                    <font style="color: green">已审核</font>
                    {else}
                    <font style="color: red">未审核</font>
                    {/if}
                </td>
                <td align="center">
                    {if value="!$v.shenhe"}
                    <a href="" cmid="{$v.cmid}" class="btn edit shenhe">
                        <i class="icon icon-edit"></i>&nbsp;审核
                    </a>&nbsp;
                    {/if}
                    <a href="{|U('editshow',array('aid'=>$v['aid']))}" class="btn edit">
                        <i class="icon icon-edit"></i>&nbsp;查看
                    </a>&nbsp;
                    <a href="" cmid="{$v.cmid}" class="isok btn del  delcategory">
                        <i class="icon icon-trash"></i>&nbsp;删除
                    </a>
                </td>
            </tr>
        {/foreach}
        {else}
            <tr><td colspan="7" style="text-align: center;">对不起，暂无任何数据</td></tr>
        {/if}
            <tr class="top_channel">
                <td colspan="7" class="d">
                    <span class="btn all quanxuan">
                        <i class="icon icon-list-alt"></i>
                         全选
                        </span>
                        <span class="btn turn fanxuan">
                        <i class="icon icon-list-alt"></i>
                         反选
                        </span>
                        <span class="btn all quanbuxuan">
                        <i class="icon icon-list-alt"></i>
                         全不选
                        </span>
                        <span class="btn turn delcomment">
                        <i class="icon icon-list-alt"></i>
                         删除
                    </span>
                </td>
            </tr>
            <tr>
            <td colspan="7" align="center">{$page}</td>
            </tr>
        </tbody>
    </table>
</body>
</html>